package com.example.demo.model;

import lombok.Data;

@Data
public class CategoryModel {

    private Long id;
    private String title;
    private String describe;
    private Long sort;
    private Long on_shelf;
    private Long is_del;
    private String create_at;
    private String update_at;

    public String getCreate_at() {
        if(this.create_at == null){
            return this.create_at;
        }
        String create_at =this.create_at.replace(".0","");
        return create_at;
    }

    public String getUpdate_at() {
        if(this.update_at == null){
            return this.update_at;
        }
        String update_at =this.update_at.replace(".0","");
        return update_at;
    }
}
